package com.itheima.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class MessageListener {
    @RabbitListener(queues = "topic_queue_springboot")
    public void topicListener(String msg){
        System.out.println("接收到消息:"+msg);
    }

}
